package me.muci.C_JUC.AtoJUC;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * ClassName: Countter <br/>
 * Description: <br/>
 * date: 2021/8/9 14:52<br/>
 *
 * @author muci<br />
 * @description
 * @since JDK 1.8
 */
public class Counter {
    private static AtomicInteger count = new AtomicInteger();

    public static void increment(){
        count.incrementAndGet();
    }

    public static int getCount(){
        return count.get();
    }

}
